﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Script.Serialization;
using Runda.CMS.Bll;
using Runda.CMS.Common.Entity;

namespace Runda.CMS.Portal.Services
{
    public partial class InstrumentRecordService : BasePage
    {
        public override bool IsCheckAccessible
        {
            get
            {
                return false;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        { 
            Response.ContentType = "text/plain";
            JavaScriptSerializer jss = new JavaScriptSerializer();
            LoginServiceEntity entity = new LoginServiceEntity();

            MaintainBillBll bll = new MaintainBillBll();
            int count = bll.Count<WsmInstrumentRecordEntity>(" and MaintainID='" + Request.Form["MaintainID"] + "'");
            if (count > 0)
            {
                entity.IsLogin = true;
                entity.MessageUI = "已读";
            }
            else
            {
                entity.IsLogin = false;
                entity.MessageUI = "未读";
            }
            Response.Write(jss.Serialize(entity));
               
            //必须收尾            
            Response.End();
        }
    }
}
